package net.xinqushi.collection;

import java.util.LinkedList;
import java.util.List;

/**
 * @author xjie 2019/7/24 17:00
 * @description LinkedList is a deque , 通常我们使用的add , iterator遍历只使用了FIFO策略
 */
public class LinkedListTest {

    static volatile String a;
    public static void main(String[] args) {
        //
        LinkedList<String> list = new LinkedList<String>();
        // test index
        list.add("1"); // add to last
        list.addFirst("addFirst");//add to first
        System.out.println(list);

    }
}
